﻿using Gp.Scripts.Core;

namespace Gp.Scripts.Core {
    
    /// <summary>
    /// 攻击结束后触发的单位事件 
    /// </summary>
    public class AttackEndReaction : ReactionArgs{
        public AttackActionResult Result { get; set; }
        public BaseUnit Source { get; }
        public BaseUnit Target { get; }

        public AttackEndReaction(AttackActionResult result, BaseUnit source, BaseUnit target) {
            Result = result;
            Source = source;
            Target = target;
        }


        public AttackEndReaction(Event_Unit.AttackEnd args) {
            Result = args.Result;
            Source = args.Source;
            Target = args.Target;
        }
    }
}